package BehavioralPattern.Memento;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * @Classname : Memento
 * @Description : 备忘录角色
 * @Author : chentianyu
 * @Date 2023/3/8 21:02
 */

public class Memento {

    private Map<String, Object> stateMap = new HashMap<>();

    public Memento(Map<String, Object> stateMap) {
        this.stateMap = stateMap;
    }

    public Map<String, Object> getStateMap() {
        return this.stateMap;
    }

    public void setStateMap(Map<String, Object> stateMap) {
        this.stateMap = stateMap;
    }
}
